<?php

namespace Es\Constant;
/**
 * 常用的es字段常量定义
 */
class FieldsConst 
{
    //二进制类型
    const BIN          = 'binary';
    const BOOL         = 'boolean';

    const KEYWORD      = 'keyword';
    const CONS_KEYWORD = 'constant_keyword';
    const WIDECARD     = 'widecard';
    
    const BYTE         = 'byte';
    const SHORT        = 'short';
    const INT          = 'integer';
    const LONG         = 'long';
    const UNSIGN_LONG  = 'unsigned_long';
    const DOUBLE       = 'double';
    const FLOAT        = 'float';
    const HALF_FLOAT   = 'half_float';
    const SCALED_FLOAT = 'scaled_float';

    const DATE         = 'date';
    const DATE_NANO    = 'date_nanos';
    
    const OBJECT       = 'object';
    const TEXT         = 'text';
    const ARRAY        = 'arrays';

}